package net.hn.hnms.biz.quality.company.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import net.hn.hnms.biz.quality.company.service.CompanyStatisticService;
import net.hn.hnms.biz.quality.mapper.CompanyStatisticMapper;
import net.hn.hnms.biz.quality.vo.CoalQualityVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@DS("master")
public class CompanyStatisticServiceImpl implements CompanyStatisticService {


    @Autowired
    private CompanyStatisticMapper statisticMapper;


    @Override
    public List<CoalQualityVO> getLastTenDaysCoalQuality(String companyCode) {
        List<CoalQualityVO> lastTenDaysCoalQuality = statisticMapper.getLastTenDaysCoalQuality(companyCode);
        return lastTenDaysCoalQuality;
    }
}
